﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Topro.Entity.Response.Menu
{
    /// <summary>
    /// 菜单
    /// </summary>
    public class MenuQueryResponse
    {
        public int Id { get; set; }
        public int ParentId { get; set; }
        public string Name { get; set; }
        public int? DisplayOrder { get; set; }
        public int Status { get; set; }
        public DateTime CreatedTime { get; set; }
        /// <summary>
        /// 子菜单
        /// </summary>
        public List<MenuQueryResponse> Children { get; set; }
    }

    public class MenuTreeResponse
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 节点状态(open 或 closed)
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 节点
        /// </summary>
        public List<MenuTreeResponse> Children { get; set; }
    }
}
